package demo1;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList=new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);
        myArrayList.add(99);
        myArrayList.add(1, 100);

        /*int x = myArrayList.get(0);
        myArrayList.display();
        System.out.println(x);*/
        myArrayList.display();
        myArrayList.remove(100);
        myArrayList.display();
        System.out.println(myArrayList.contains(199));
        System.out.println(myArrayList.indexOf(3));
        myArrayList.display();

    }
}
